import { defHttp } from "@/utils/http";

// ERP 科室库存消耗明细 API
export const invtDeptRecordApi = {
	// 获得科室库存消耗明细分页
	invtDeptRecordList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-dept-record/page`, params });
	},
	// 新增科室库存消耗明细
	invtDeptRecordCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-dept-record/create`, data });
	},

	// 修改科室库存消耗明细
	invtDeptRecordUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-dept-record/update`, data });
	},

	// 删除科室库存消耗明细
	invtDeptRecordDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-dept-record/delete?id=` + id });
	}
};
